import requestUtils from '@/common/utils/requestUtils.js'
import commonConstants from '@/common/constants/commonConstants.js'
export default {
	/**
	 * 获取工厂列表
	 */
	getFactoryComboList(successCallback) {
		let url = commonConstants.request.context.path.base +
			"/basedata/factory/getComboList";
		return requestUtils.getListByCondition(url, {}, successCallback)
	},
	/**
	 * 工艺及生产减碳接口
	 */
	insertProcessImpro(param, successCallback, errorCallback) {

		let url = commonConstants.request.context.path.cer + '/cer/processImpro/addImpro';
		return requestUtils.insert(url, param, successCallback, errorCallback)
	},
	/**
	 * 工艺及生产减碳接口
	 */
	insertStaffImpro(param, successCallback, errorCallback) {

		let url = commonConstants.request.context.path.cer + '/cer/staffImpro/insert';
		return requestUtils.insert(url, param, successCallback, errorCallback)
	},
}